<?php

namespace app\admin\model\user;

use app\admin\model\Models;

class UserInfo extends Models
{
    /**
     * 设置状态获取器
     * @return string
     */
    protected function getGenderTextAttr( $value, $data )
    {
        $gender = config('field.user_info.gender');
        return $gender[$data['gender']]??'暂无';
    }
}
